package com.chuyunjian;

import com.chuyunjian.redis.SerialNumberUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@SpringBootTest(classes = RedisServer.class)
@RunWith(SpringRunner.class)
public class SerialNUmberUtil {
    @Resource
    private SerialNumberUtil serialNumberUtil;

    @Test
    public void test() {
        String test = serialNumberUtil.generate("test", "0", 4, 2, 300);
        System.out.println(test);
    }
}